package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import com.estore.entity.Agent_Product;

public class Agent_ProductMapper implements RowMapper<Agent_Product> {

	@Override
	public Agent_Product mapRow(ResultSet rs, int arg1) throws SQLException {
		Agent_Product agent_Product = new Agent_Product();
		agent_Product.setListID(rs.getInt("listID"));
		agent_Product.setProductCondition(rs.getString("productCondition"));
		agent_Product.setContentOfShop(rs.getString("contentofshop"));
		agent_Product.setStartDate(rs.getString("startDate"));
		agent_Product.setSellingPrice(rs.getInt("sellingPrice"));
		agent_Product.setWarranty(rs.getInt("warranty"));
		return agent_Product;
	}

}
